* debian/patches/backport/0006-Fix-build-for-gcc-15-934.patch,
debian/patches/backport/0007-Fix-deprecated-declarations-in-C-17.patch:
Backport upstream patches to fix FTBFS with GCC 15. (Closes: #1097512)
+ * debian/patches/0002-Force-build-with-c-17.patch: Force building with
+ c++17 standard to fix FTBFS with the new googletest.
- -- Boyuan Yang <byang@debian.org> Tue, 09 Sep 2025 08:20:41 -0400
+ -- Boyuan Yang <byang@debian.org> Tue, 09 Sep 2025 08:26:01 -0400
opencc (1.1.9+ds1-1) unstable; urgency=medium
--- /dev/null
+From: Boyuan Yang <byang@debian.org>
+Date: Tue, 9 Sep 2025 08:25:14 -0400
+Subject: Force build with c++17
+
+Needed by googletest.
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ba28233..25abb7d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -155,7 +155,7 @@ add_definitions(
+
+ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
+ add_definitions(
+- -std=c++14
++ -std=c++17
+ -Wall
+ )
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
+@@ -164,7 +164,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
+ endif ()
+ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+ add_definitions(
+- -std=c++14
++ -std=c++17
+ -Wall
+ )
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
0001-use-cmake-install-libdir.patch
+0002-Force-build-with-c-17.patch
0003-no-remote-images-when-reading-docs-on-disk.patch
0004-Use-system-googletest.patch
0005-Disable-build-in-setup.py.patch